const path = require('path');
const express = require('express');


//构建
const ClassRouter = express.Router();

//引入控制器
const ClassController = require(path.join(__dirname,"../controllers/ClassController"));


//主页面
ClassRouter.get('/classsList',ClassController.classsList);

//编辑
ClassRouter.get('/classsEdit',ClassController.classsEdit);

//编辑提交
ClassRouter.post('/classsEdit',ClassController.classEditForm);

//添加
ClassRouter.get('/classsAdd',ClassController.classsAdd);

//添加提交
ClassRouter.post('/classsAdd',ClassController.classsAddForm);

// 账号删除页面
ClassRouter.get('/classsDelete',ClassController.classsDelete);


module.exports = ClassRouter;